package com.taijia.chapter3;

interface Singer {
	void sing();
	void sleep();
}

interface Painter {
	void paint();
	
	void sleep();
}

public class Student implements Singer,Painter{
	private String name;
	
	public Student() {
	}
	
	public Student(String name) {
		name = this.name;
	}
	
	public String getName() {
		return name;
	}
	
	public void study() {
		System.out.println("Study...");
	}
	
	public void sing() {
		System.out.println("student sing!");
	}
	
	public static void main(String[] args) {
		Student student = new Student("汤太佳");
		student.sing();
		student.study();
	}
	
	@Override
	public String toString() {
		return "[" + this.name + "]";
	}

	@Override
	public void sleep() {
		System.out.println("student sleep!");
	}

	@Override
	public void paint() {
		System.out.println("student paint!");
	}
}
